import { request, config } from 'utils'

const {api} = config
const {configPrefix} = api

/**
 * 获取信息
 */
export async function getList (params) {
  const url = `${configPrefix}/list`
  return request({url: url, method: 'GET', data: params || {}})
}

/**
 * 更新
 * @param params
 * @return {Promise<*>}
 */
export async function update (params) {
  const url = `${configPrefix}/update`
  return request({url: url, method: 'PUT', data: params || {}})
}
